package com.cyt.website.service;

import com.cyt.base.model.dto.ReturnResult;
import com.cyt.website.model.po.WebsiteApplication;
import com.cyt.website.model.vo.WebsiteApplicationVo;
import com.cyt.sys.model.po.SysUser;
import com.cyt.sys.service.BaseService;

import java.util.List;

/**
 * 官网应用案例管理-官网应用案例管理Service层接口类
 *
 * @author congcong tao
 * @date 2019-8-13 9:49:42
 */
public interface WebsiteApplicationService extends BaseService<WebsiteApplication> {

    /**
     * 查询对象集合
     *
     * @param websiteApplicationVo 对象
     * @return List 对象集合
     * @author congcong tao
     * @date 2019-8-13 9:49:42
     */
    List<WebsiteApplication> listExample(WebsiteApplicationVo websiteApplicationVo);

    /**
     * 分页查询
     *
     * @param websiteApplicationVo 接受参数对象
     * @param pageNum          分页数
     * @param pageSize         每页显示条数
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:49:42
     */
    ReturnResult page(WebsiteApplicationVo websiteApplicationVo, int pageNum, int pageSize);

    /**
     * 添加或更新
     *
     * @param websiteApplicationVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:49:42
     */
    ReturnResult addOrUpdate(WebsiteApplicationVo websiteApplicationVo, SysUser sysUser);

    /**
     * 根据条件逻辑删除
     *
     * @param websiteApplicationVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:49:42
     */
    ReturnResult remove(WebsiteApplicationVo websiteApplicationVo, SysUser sysUser);

    /**
     * 根据条件物理删除
     *
     * @param websiteApplicationVo 参数接受对象
     * @param sysUser      当前用户
     * @return ReturnResult
     * @author congcong tao
     * @date 2019-8-13 9:49:42
     */
    ReturnResult delete(WebsiteApplicationVo websiteApplicationVo, SysUser sysUser);

    /**
     * 关联查询
     * @param websiteApplicationVo
     * @author congcong tao
     * @date 2019/8/14 13:49
     */
    List<WebsiteApplication> selectByCondition(WebsiteApplicationVo websiteApplicationVo);
}